.class Lcom/netease/newsreader/activity/NewsReader$42;
.super Ljava/lang/Object;
.source "NewsReader.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/netease/newsreader/activity/NewsReader;->onKeyDown(ILandroid/view/KeyEvent;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/NewsReader;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/NewsReader;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    .line 4319
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 3
    .parameter "dialoginterface"
    .parameter "j"

    .prologue
    .line 4323
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/mobileanalysis/MobileAgent;->sessionEnd(Landroid/content/Context;)V

    .line 4324
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    iget-object v1, v1, Lcom/netease/newsreader/activity/NewsReader;->app:Lcom/netease/newsreader/activity/MyApplication;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/MyApplication;->setKeyback(Z)V

    .line 4327
    :try_start_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$107(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Timer;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$107(Lcom/netease/newsreader/activity/NewsReader;)Ljava/util/Timer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/Timer;->cancel()V

    .line 4328
    :cond_0
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    const-class v2, Lcom/netease/newsreader/service/ClearCacheService;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 4329
    .local v0, clearCacheIntent:Landroid/content/Intent;
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-virtual {v1, v0}, Lcom/netease/newsreader/activity/NewsReader;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 4333
    .end local v0           #clearCacheIntent:Landroid/content/Intent;
    :goto_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-static {v1}, Lcom/netease/newsreader/activity/NewsReader;->access$105(Lcom/netease/newsreader/activity/NewsReader;)Lcom/netease/newsreader/activity/MyApplication;

    move-result-object v1

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/MyApplication;->setExit(Z)V

    .line 4335
    iget-object v1, p0, Lcom/netease/newsreader/activity/NewsReader$42;->this$0:Lcom/netease/newsreader/activity/NewsReader;

    invoke-virtual {v1}, Lcom/netease/newsreader/activity/NewsReader;->finish()V

    .line 4337
    return-void

    .line 4331
    :catch_0
    move-exception v1

    goto :goto_0
.end method
